// 抽奖礼品管理
import request from '@/utils/request'

// 新增
export function postCarePrize(data) {
  return request({
    url: '/call-center/api/v1/carePrize',
    method: 'POST',
    data
  })
}
// 修改
export function putCarePrize(data) {
  return request({
    url: '/call-center/api/v1/carePrize',
    method: 'PUT',
    data
  })
}
// 批量停用
export function batDisable(ids) {
  return request({
    url: '/call-center/api/v1/carePrize/disable',
    method: 'PUT',
    data: ids
  })
}
// 停用
export function disable(id) {
  return request({
    url: `/call-center/api/v1/carePrize/disable/${id}`,
    method: 'PUT'
  })
}
// 批量启用
export function batEnable(ids) {
  return request({
    url: '/call-center/api/v1/carePrize/enable',
    method: 'PUT',
    data: ids
  })
}
// 启用
export function enable(id) {
  return request({
    url: `/call-center/api/v1/carePrize/enable/${id}`,
    method: 'PUT'
  })
}
